/******************************************************************************\
 * Filename   : enc_stream.h
 * Copyright  : 
 * Created    : 2018-10-31 by litao
 * Description:
 * 
\******************************************************************************/

#ifndef __ENC_STREAM_H__
#define __ENC_STREAM_H__

#include "enc_common.h"

enum _av_raw_type{
	ENC_RAW_VIDEO,
	ENC_RAW_AUDIO,

	ENC_RAW_MAX
};

typedef struct _enc_av_data_head
{
	int data_type;
	int key_frame;
	int64_t dts;
	int64_t pts;
	int codec_id;
	uint16_t width;
	uint16_t height;
	uint32_t sample_rate;
	uint32_t timebase_num;
	uint32_t timebase_den;
	uint32_t reserve;
	char data[0];
}enc_av_data_head;

extern void *enc_stream_handle(void *p_arg);

#endif

